import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
export default defineConfig({
  server: {
    port: 3000, // 使用其他端口
    host: true, // 允许外部访问
    open: true, // 启动后自动打开浏览器
  },
  plugins: [vue()],
  resolve: {
    alias: {
      "@": "/src",
    },
    extensions: [".js", ".ts", ".jsx", ".tsx", ".json", ".vue"],
  },
});
